﻿namespace TTGIS.TileServer.API.ApiModels.Common
{
    /// <summary>
    /// 图形信息
    /// </summary>
    public abstract class GraphicalItem
    {
        /// <summary>
        /// 类型
        /// </summary>
        public string Type { get; protected set; } = "";
        /// <summary>
        /// 绑定的数据库数据
        /// </summary>
        public Dictionary<string, object> DBData { get; set; } = new();

        /// <summary>
        /// 文本内容
        /// </summary>
        public string TextInfo { get; set; } = "";

        /// <summary>
        /// 角度/弧度
        /// </summary>
        public Double Radian { get; set; }

        /// <summary>
        /// 点
        /// </summary>
        public LocationInfo Location { get; set; }

        /// <summary>
        /// 点列表
        /// </summary>
        public List<LocationInfo> Points { get; set; } = new();
        /// <summary>
        /// 左
        /// </summary>
        public LocationInfo Left { get; set; }
        /// <summary>
        /// 右
        /// </summary>
        public LocationInfo Right { get; set; }

        /// <summary>
        /// 左上角
        /// </summary>
        public LocationInfo LeftTop { get; set; }
        /// <summary>
        /// 右下角
        /// </summary>
        public LocationInfo RightBottom { get; set; }
        /// <summary>
        /// 起始角
        /// </summary>
        public double StartRadian { get; set; }
        /// <summary>
        /// 结束角
        /// </summary>
        public double StopRadian { get; set; }
    }
}
